package ch9;

import javax.servlet.*;
import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

@WebListener()
public class MyListener02 implements ServletContextListener, HttpSessionListener, ServletRequestListener {

    public void attributeAdded(ServletContextAttributeEvent scae){
        System.out.println("ServletContext对象新增了属性"+scae.getName());
    }
    public void attributeAdded(ServletRequestAttributeEvent sare){
        System.out.println("ServletRequest对象新增了属性"+sare.getName());
    }
    public void attributeAdded(HttpSessionBindingEvent se){
        System.out.println("ServletContext对象新增了属性"+se.getName());
    }
}
